//
//  ButtonCollectionViewCell.m
//  LNA
//
//  Created by dllo on 16/1/26.
//  Copyright © 2016年 www.lanou3g.com蓝鸥. All rights reserved.
//

#import "ButtonCollectionViewCell.h"

@implementation ButtonCollectionViewCell

- (void)dealloc
{
    [_imgView release];
    [_cnname release];
    [_enname release];
    [_beenstrLabel release];
    [_representativeLabel release];
    [_hengxianView release];
    [super dealloc];
    
    
    
    
}
- (instancetype) initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _imgView = [[UIImageView alloc] init];
        [self.contentView addSubview:_imgView];
        
        _cnname = [[UILabel alloc] init];
        [self.contentView addSubview:_cnname];
        
        _enname = [[UILabel alloc] init];

        [self.contentView addSubview:_enname];
        
        _beenstrLabel = [[UILabel alloc] init];

        [self.contentView addSubview:_beenstrLabel];
        
        _representativeLabel = [[UILabel alloc] init];
        [self.contentView addSubview:_representativeLabel];
        
        _hengxianView = [[UIView alloc] init];
        [self.contentView addSubview:_hengxianView];
    }
    return self;
    
}
- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    
    _imgView.frame = CGRectMake(0, 0, layoutAttributes.size.width, layoutAttributes.size.height - 80);
    _cnname.frame = CGRectMake(55, 30, 60, 20);
    _enname.frame = CGRectMake(55, 45, 80, 20);
    _beenstrLabel.frame = CGRectMake(10, 110, 100, 20);
    _representativeLabel.frame = CGRectMake(10, 140, 170, 38);
    _hengxianView.frame = CGRectMake(0, 179, self.contentView.frame.size.width, 0.5);
    _hengxianView.backgroundColor = [UIColor colorWithRed:236 / 255.0 green:236 / 255.0 blue:236 / 255.0 alpha:1];
    
}
@end
